/*@import url('https://fonts.proxy.ustclug.org/css2?family=Manrope:wght@400;500;600;700;800&display=swap');*/
/*@import url('https://fonts.proxy.ustclug.org/css?family=Noto+Sans:400,700');*/

* {
    font-family: "Manrope", 'Noto Sans', sans-serif
}

:root {
    --theme: #b62b2f;
    --transition: .3s;
    --font-size: 16px;
    --font-color: #000;
    --link-color: var(--font-color);
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    background-color: #FFF;
}

html, body {
    height: 100%;
}

#container {
    min-height: 100%;
    display: flex; /* 容器为flex布局 */
    flex-direction: column; /* 方向为纵向，保持正常的从上到下文档流 */
}

footer {
    margin-top: auto; /* 设置footer的上外边距为auto */
}

#toast-container > div {
    opacity: .9 !important;
}

p {
    line-height: 1.8;
    font-size: var(--font-size);
    margin-bottom: 15px;
}

a {
    display: block;
    transition: var(--transition) !important;
    text-decoration: none !important;
    color: var(--font-color) !important;
}

a:hover, a:focus {
    text-decoration: none !important;
}

a:hover, a.active {
    color: var(--theme) !important;
}

a:focus {
    color: var(--font-color) !important;
}

nav .logo {
    height: 50px;
}

nav .dropdown:hover .dropdown-menu {
    display: block;
}

.fit-cover {
    object-fit: cover !important;
}

.bg-color {
    background-color: var(--theme) !important;
}

.swiper-pagination-bullet {
    transition: all var(--transition) !important;
}

.swiper-pagination-bullet-active {
    background: var(--theme) !important;
    width: 30px !important;
    border-radius: 10px !important;
}

.btn:hover, .btn:focus {
    outline: none;
}

.btn-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
}

.content img {
    max-width: 100%;
    height: auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0 0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    list-style: none;
    font-weight: 600;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item > a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.breadcrumb-item > a.active {
    color: var(--theme) !important;
}

.primary-color {
    color: var(--theme) !important;
}

.mt-6 {
    margin-top: 6rem !important;
}

.mb-6 {
    margin-bottom: 6rem !important;
}

.fs-7 {
    font-size: .8rem !important;
}

.nav-item.active .nav-link {
    color: var(--theme) !important;
}

.nav-item .dropdown-menu .active .dropdown-item {
    color: var(--theme) !important;
}

.breadcrumb .active {
    color: var(--theme) !important;
}

.swiper-container {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
}

/*栏目菜单*/
.category-menu .category-name {
    font-size: 16px;
    font-weight: 700;
    position: relative;
    margin: 0 0 30px;
    padding-left: 15px;
    text-transform: uppercase;
    border-left: 3px solid var(--theme);
}

.category-menu ul li {
    width: 100%;
}

.category-menu ul li a {
    padding: 15px 20px;
    border: 0;
    margin-bottom: 8px;
    position: relative;
    display: block;
    background: #f4f4f4 -webkit-linear-gradient(left, var(--theme), var(--theme)) no-repeat 0 0;
    background-size: 0 100%;
    transition: var(--transition);
}

.category-menu ul li.active a,
.category-menu ul li:hover a {
    color: #fff !important;
    cursor: pointer;
    background-color: var(--theme);
}

/* 优选模板 */
.theme-block .card {
    height: 100%;
    max-height: 687px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 5px 5px 3px #1d3a5310;
    transition: all 0.3s ease-in-out;
}

.theme-block .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 5px 8px 3px #1d3a5360;
}

.theme-block img {
    height: 100%;
    object-position: top;
    transition: all .4s;
}

.theme-block .card:hover img {
    transform: scale(1.06);
    /*filter: blur(2px);*/
}

.theme-block .card:hover .card-mask .header {
    height: 5rem;
}

.theme-block .card:hover .card-mask .footer {
    height: 50px;
}

.theme-block .card-mask {
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: absolute;
}

.theme-block .card-mask .header {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: end;
    transition: all .2s;
}

.theme-block .card-mask .header .icon {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all .2s;
    color: #fff;
    background-color: var(--theme);
    box-shadow: 0 2px 5px 5px #1d3a5360;
}

.theme-block .card-mask .footer {
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0;
    width: 100%;
    padding: 0 10px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 1);
    transition: all .2s;
}

.theme-block .card-mask .footer .title {
    display: inherit;
}

.theme-block .card-mask .footer .title:before {
    content: '';
    width: 4px;
    margin-right: 7px;
    border-radius: 10px;
    background-color: var(--theme);
}

/* 分页栏 */
.pagination .page-link {
    border-radius: 50%;
    margin: 0 8px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000 !important;
    background: #FFF -webkit-linear-gradient(left, var(--theme), var(--theme)) no-repeat 0 0;
    background-size: 0 100%;
    transition: var(--transition) !important;
}

.pagination .page-link:hover {
    color: #FFF !important;
    background-color: var(--theme);
}

.pagination .page-link.active {
    color: #FFF !important;
    background-color: var(--theme) !important;
    border-color: var(--theme) !important;
}

.pagination .page-item:first-child .page-link, .pagination .page-item:last-child .page-link {
    border-radius: 50%;
}

.pagination .disabled > .page-link {
    background-color: #f9f9f9 !important;
}

.poster-modal {
    width: 400px !important;
}

.poster-modal .modal-content {
    width: auto;
    background-color: unset;
}

.poster {
    position: relative;
    width: 400px !important;
    border-radius: .5rem;
    background-color: #FFF;
}

.poster .cover {
    width: 400px;
    height: 300px;
    overflow: hidden;
    border-radius: .5rem .5rem 0 0;
}

.poster .cover img {
    width: 100%;
}

.poster .summary {
    height: 75px;
    word-break: break-all !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.poster .bi-fingerprint {
    font-size: 3rem;
}

.dropdown-menu-panel {
    width: 100vw !important;
    left: 0 !important;
    position: fixed !important;
}

@media (max-width: 768px) {
    .dropdown-menu-panel {
        width: 100% !important;
        position: static !important;
        padding: 0 !important;
    }

    .dropdown-menu-panel .product .title {
        font-size: 16px !important;
    }

    .dropdown-menu-panel .product .intro {
        font-size: 12px !important;
    }
}

.dropdown-menu-panel .product .item {
    position: relative;
    padding: 10px;
    transition: .2s all;
    /*margin: 0 10px;*/
}

.dropdown-menu-panel .product .cover {
    width: 150px;
    height: 100px;
    border-radius: .5rem;
    object-fit: cover;
}

.dropdown-menu-panel .product .title {
    font-size: 18px;
    font-weight: bold;
}

.dropdown-menu-panel .product .intro {
    font-size: 13px;
    color: #6C757D;
}

.dropdown-menu-panel .product .goto {
    border-radius: 5px;
    width: 70px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--theme);
    color: var(--theme);
    transition: var(--transition);
    font-size: 13px;
}

.dropdown-menu-panel .product .item:hover .goto {
    background-color: var(--theme);
    color: #FFF;
}

.dropdown-menu-panel .product .item::before,
.dropdown-menu-panel .product .item::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    opacity: 0;
    border: 0 solid var(--theme);
    transition: transform .3s, opacity .3s;
    transition-timing-function: cubic-bezier(0.17, 0.67, 0.05, 1.29);
}

@media (max-width: 768px) {
    .dropdown-menu-panel .product .item::before,
    .dropdown-menu-panel .product .item::after {
        content: none;
    }
}

.dropdown-menu-panel .product .item::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.dropdown-menu-panel .product .item::after {
    right: 0;
    bottom: 0;
    border-width: 0 2px 2px 0;
}

.dropdown-menu-panel .product .item:hover::before {
    transform: translate3d(-3px, -3px, 0);
    opacity: 1;
}

.dropdown-menu-panel .product .item:hover::after {
    transform: translate3d(3px, 3px, 0);
    opacity: 1;
}

